﻿namespace MyServer.Todo.Domain.Common
{
    public class UserCreationInfo : ValueObject
    {
        public string UserId { get; private set; } = null;
        public DateTime CreationTime { get;private set; }
        public UserCreationInfo(string userId, DateTime creationTime)
        {
            UserId = userId;
            CreationTime = creationTime;
        }

        protected override IEnumerable<object> GetAtomicValues()
        {
            yield return UserId;
            yield return CreationTime;
        }
    }
}
